/*
** main.c for my_printf in /home/nadali_t//local/svn/tek2ed/my_printf
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Sun Nov 18 16:32:45 2012 thomas nadalie
** Last update Sun Nov 18 16:36:08 2012 thomas nadalie
*/

#include	<stdarg.h>
#include	<stdlib.h>
#include	"my.h"

int		my_printf(const char *format, ...)
{
  va_list	ap;

  va_start(ap, format);
  if ((catch_opt(format, ap)) == 1)
    return (1);
  va_end(ap);
  return (0);
}

int		main(int ac, char **av)
{
  int		nb;

  if (ac == 3)
    {
      nb = my_getnbr(av[2]);
      if ((my_printf(av[1], av[2])) == 1)
	my_put_error("Unknow conversion specifier\n");
    }
  else
    my_put_error("ta race\n");
  //printf("%%", av[2]);
  return (0);
}
